<?php
namespace App\Controller\App;

use HyperfSanctum\Manage;
use App\Repository\UserRepository;
use App\Repository\LevelRepository;

class Controller extends \App\Controller\Controller
{
    // 当前用户
    protected function auth()
    {
        return UserRepository::make(Manage::user());
    }
    
    // 当前等级
    protected function level()
    {
        return LevelRepository::make(Manage::user()->level);
    }
}
